package com.project.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.PurchaseInfoBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author lyl
 * description:入库单实体详情持久层
 */
@Mapper
public interface IPurchaseInfoDao extends BaseMapper<PurchaseInfoBean> {
    /**
     * 添加新的订单详情
     *
     * @param productId
     * @param purchaseNum
     * @param SalePrice
     * @return
     */
    int addPurchaseInfo(@Param("productId") long productId, @Param("purchaseNum") long purchaseNum, @Param("SalePrice") long SalePrice, @Param("purchaseId") long purchaseId);


}
